package com.kz.himalaya.bean;

import com.google.gson.annotations.Expose;
import com.kz.himalaya.BR;
import com.kz.himalaya.R;
import com.kz.himalaya.adapter.CommentPagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2017/1/25.
 */

public class FocusImagesEntity {
    private int ret;
    private List<FocusImagesList> list;
    private String title;
    @Expose(serialize = false,deserialize = false)
    private CommentPagerAdapter adapter;

    public int getRet() {
        return ret;
    }

    public void setRet(int ret) {
        this.ret = ret;
    }

    public List<FocusImagesList> getList() {
        return list;
    }

    public void setList(List<FocusImagesList> list) {
        this.list = list;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public CommentPagerAdapter getAdapter(){
        if (adapter == null) {
            adapter = new CommentPagerAdapter<>(list, R.layout.hot_header_item, BR.hot_pager_item);
        }
        return adapter;
    }

    public class FocusImagesList{
        public long id,uid,albumId,focusCurrentId;
        private String shortTitle,longTitle,pic;
        private int type;
        private boolean isShare,is_External_url;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public long getUid() {
            return uid;
        }

        public void setUid(long uid) {
            this.uid = uid;
        }

        public long getAlbumId() {
            return albumId;
        }

        public void setAlbumId(long albumId) {
            this.albumId = albumId;
        }

        public long getFocusCurrentId() {
            return focusCurrentId;
        }

        public void setFocusCurrentId(long focusCurrentId) {
            this.focusCurrentId = focusCurrentId;
        }

        public String getShortTitle() {
            return shortTitle;
        }

        public void setShortTitle(String shortTitle) {
            this.shortTitle = shortTitle;
        }

        public String getLongTitle() {
            return longTitle;
        }

        public void setLongTitle(String longTitle) {
            this.longTitle = longTitle;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public boolean isShare() {
            return isShare;
        }

        public void setShare(boolean share) {
            isShare = share;
        }

        public boolean is_External_url() {
            return is_External_url;
        }

        public void setIs_External_url(boolean is_External_url) {
            this.is_External_url = is_External_url;
        }
    }
}
